
package System;

import System.Exception.SystemException;
import UDPTools.Settings.UDPSettings;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * La classe LancerJChat est le point d'entrée de notre application.
 * 
 * @author      Frank Djomo
 * @author      Christelle SIAGO HAPPI
 * @author      djomopoueme@gmail.com
 * @author      christelle.siagohappi@gmail.com
 * @version     1.0
 */
public class LancerJChat {
    public static void main(String[] args) {
       
        if(args[0]!= null){
            try {
                UDPSettings.NETWORK_BROADCAST=args[0];
                System.out.println("Lancement du ChatSystem sur le reseau "+UDPSettings.NETWORK_BROADCAST);
                ChatSystem chatSystem = new ChatSystem();
            } catch (SystemException ex) {
                Logger.getLogger(LancerJChat.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        else{
                System.out.println("Usage java -jar JChat.jar <@broadcast du reseau>");
        }
        
    }  
}
//TODO gestion de ModelSettings